package com.metaera.app.data.model;

public class UserDetailsResponse {

    String phone_code;
    private int    id;
    private String mobile;
    private String nickname;
    private String avatar_img;
    private String update_time;
    private String create_time;
    private int    state;
    private String commission;
    private String frozen;
    private String balance;
    private String fee;
    private Object province;
    private Object city;
    private Object area;
    private int    sex;
    private Object address;
    private int    type;
    private String desc;
    private String position;
    private String email;
    private String wechat;
    private String twitter;
    private int    is_delete;
    private String weibo;
    private String knowledge_planet;
    private String official_account;
    private String phone;
    private int    is_show_phone;
    private int    is_show_wechat;
    private int    is_log_off;
    private Object log_off_time;
    private String submit_time;
    private int    status;
    private String token;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMobile() {
        if (mobile == null) {
            return "";
        }
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPhone_code() {
        if (phone_code == null) {
            return "86";
        }

        return phone_code;
    }

    public void setPhone_code(String phone_code) {
        this.phone_code = phone_code;
    }

    public String getNickname() {
        if (nickname == null) {
            return "";
        }

//        if (nickname.length() > 20) {
//            return nickname.substring(0, 20) + "...";
//        }

        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar_img() {
        return avatar_img;
    }

    public void setAvatar_img(String avatar_img) {
        this.avatar_img = avatar_img;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCommission() {
        return commission;
    }

    public void setCommission(String commission) {
        this.commission = commission;
    }

    public String getFrozen() {
        return frozen;
    }

    public void setFrozen(String frozen) {
        this.frozen = frozen;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getFee() {
        return fee;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public Object getProvince() {
        return province;
    }

    public void setProvince(Object province) {
        this.province = province;
    }

    public Object getCity() {
        return city;
    }

    public void setCity(Object city) {
        this.city = city;
    }

    public Object getArea() {
        return area;
    }

    public void setArea(Object area) {
        this.area = area;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Object getAddress() {
        return address;
    }

    public void setAddress(Object address) {
        this.address = address;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        if (desc == null) {
            return "";
        }
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getPosition() {
        if (position == null) {
            return "";
        }
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getEmail() {
        if (email == null) {
            return "";
        }
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWechat() {
        if (wechat == null) {
            return "";
        }
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getTwitter() {
        if (twitter == null) {
            return "";
        }
        return twitter;
    }

    public void setTwitter(String twitter) {
        this.twitter = twitter;
    }

    public int getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(int is_delete) {
        this.is_delete = is_delete;
    }

    public int getIs_show_wechat() {
        return is_show_wechat;
    }

    public void setIs_show_wechat(int is_show_wechat) {
        this.is_show_wechat = is_show_wechat;
    }

    public String getWeibo() {
        return weibo;
    }

    public void setWeibo(String weibo) {
        this.weibo = weibo;
    }

    public String getKnowledge_planet() {
        return knowledge_planet;
    }

    public void setKnowledge_planet(String knowledge_planet) {
        this.knowledge_planet = knowledge_planet;
    }

    public String getOfficial_account() {
        return official_account;
    }

    public void setOfficial_account(String official_account) {
        this.official_account = official_account;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getIs_show_phone() {
        return is_show_phone;
    }

    public void setIs_show_phone(int is_show_phone) {
        this.is_show_phone = is_show_phone;
    }

    public int getIs_log_off() {
        return is_log_off;
    }

    public void setIs_log_off(int is_log_off) {
        this.is_log_off = is_log_off;
    }

    public Object getLog_off_time() {
        return log_off_time;
    }

    public void setLog_off_time(Object log_off_time) {
        this.log_off_time = log_off_time;
    }

    public String getSubmit_time() {
        return submit_time;
    }

    public void setSubmit_time(String submit_time) {
        this.submit_time = submit_time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
